/*
 * © 2010 Autodata Solutions Company. All Rights Reserved
 * This source code is the confidential and proprietary information of Autodata Solutions Company.
 * The user shall not, in whole or in part, copy, publish, disclose or make any use of this source code
 * without the prior written consent of Autodata Solutions Company.
*/
Ext.ns('net.autodata.compare.data');
(function () {
	
	/**
	 * @class CompetitorVehicle
	 * @namespace net.autodata.compare.data
	 */
	var Vehicle = function (vehicle)
	{		
		//Convert the colourized exterior images into a MixedCollection
		var colourizedImages = new Ext.util.MixedCollection(false, function (o) { return o.shortDesc; });
		colourizedImages.addAll(vehicle.colourizedImages);
		delete vehicle.colourizedImages;
		
		return Ext.apply(vehicle, {
			
			/**
			 * @property acode
			 * @type String
			 */
			
			/**
			 * @property modelYear
			 * @type net.autodata.modelwalk.modelYear
			 */
			
			/**
			 * @property make
			 * @type net.autodata.modelwalk.Make
			 */
			
			/**
			 * @property model
			 * @type net.autodata.modelwalk.Model
			 */
			
			/**
			 * @property trim
			 * @type net.autodata.modelwalk.trim
			 */
			
			/**
			 * IOF Image Name
			 * @property imageName
			 * @type String
			 */
			
			/**
			 * @property msrp
			 * @type float
			 */
			
			/**
			 * @property colourizedImages
			 * @type Ext.util.MixedCollection
			 */
			colourizedImages: colourizedImages
			
		});
	};
	
	net.autodata.compare.data.CompetitorVehicle = Vehicle;
	
})();